]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
popupMenu: Handle keypress if numlock is enabled
authorOlivier Fourdan <ofourdan@redhat.com>
Tue, 21 Jul 2020 14:33:04 +0000 (16:33 +0200)
committerOlivier Fourdan <ofourdan@redhat.com>
Tue, 21 Jul 2020 14:38:15 +0000 (16:38 +0200)
On Wayland, navigating menus with the keyboard would not open drop-down
menus when NumLock is enabled.

That's old issue (gnome-shell#550) that was not completely fixed with
commit 88556226 because the lock mask needs to be filtered out in
_onKeyPress() as well.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/550
js/ui/popupMenu.js

index ad827ac5b3583f0b42ce3801e82fa3ab54286468..222dbe9c49fe443192e48510343d4148ceb601c9 100644 (file)
@@ -881,9 +881,10 @@ var PopupMenu = class extends PopupMenuBase {
 
         let state = event.get_state();
 
-        // if user has a modifier down (except capslock)
+        // if user has a modifier down (except capslock and numlock)
         // then don't handle the key press here
         state &= ~Clutter.ModifierType.LOCK_MASK;
+        state &= ~Clutter.ModifierType.MOD2_MASK;
         state &= Clutter.ModifierType.MODIFIER_MASK;
 
         if (state)